< previous page page_438 next page >

Page 438
Puzzle 16
Just because the puzzles in this section are more advanced doesn't mean I can't sneak a simple one in now and again.
Puzzle 17
Changing the declaration to the one shown in api32.txt (on the CD included with this book) is not enough to solve the problem.
You may need more information than shown in the puzzle to figure this one outthat means going to the documentation for the function.
See my book Visual Basic Programmer's Guide to the Win32 API, Chapter 12 (listing for the DocumentProperties function).
See the Win32 SDK or MSDN, DocumentProperties reference.
After you look at one or both of the above two references, read them again carefully!
See Tutorial 4, "How DLL Calls Work: Inside a Stack Frame," in Part III of this book.
Puzzle 18
See Tutorial 7, "Classes, Structures, and User-Defined Types," in Part III of this book.
What happens when the first element of an array of structures is passed as a parameter to an API function?
Puzzle 19
Don't forget the alignment rules.
Did you know that Visual Basic supports conditional compilation?
What happens when you assign a short string to a larger fixed-length string?

 
< previous page page_438 next page >